@(orderItems: List[OrderItem], total: Integer)

@import helper._


@main("CartList") {
	
	<h5>CartList - @orderItems.size() item(s) - Total: @total HUF</h5>
	<hr />
	<fieldset>
	<form action="/" method="get" style="float: left; margin-right: 15px;">
		<input class="btn btn-default btn-sm" type="submit" value="Continue Shopping">
	</form>
	<form action="/order/buy" method="post">
		<input class="btn btn-success btn-sm" type="submit" data-loading-text="Loading..." value="Proceed to Buy">
	</form>
	@for(item <- orderItems){	
			@product(item, orderItems.indexOf(item))
	}
	</fieldset>

}